eee7dbf478d3dc58b3db5f00467679780df40110,xwiki-platform-core/xwiki-platform-component/xwiki-platform-component-wiki/src/main/java/org/xwiki/component/wiki/internal/DefaultWikiComponentManager.java,DefaultWikiComponentManager,registerWikiComponent,#WikiComponent#,80
Before Change
// If the component is a Java classes extending the default WikiComponent interface, we add all the
// interfaces it implements to the list, except the WikiComponent one of course.
for (Class<?> implementedInterface : component.getClass().getInterfaces()) {
if (implementedInterface != WikiComponent.class) {
implementedInterfaces.add(implementedInterface);
}
}
After Change
this.wikiComponentManagerContext.setCurrentEntityReference(component.getDocumentReference());
// Since we are responsible to create the component instance, we also are responsible of its initialization
if (this.isInitializable(component.getClass().getInterfaces())) {
try {
((Initializable) component).initialize();
} catch (InitializationException e) {